package models;

import java.util.Arrays;

import javax.persistence.Entity;

import play.mvc.Scope.Session;

import securesocial.provider.UserId;

@Entity
public class Admin extends Usuario {
	
	public Admin(String email, String password, String nombre, UserId socialUserId) {
		super(email, password, nombre, socialUserId, Arrays.asList((ADietaRol)ADietaRol.find("byName", TipoRol.ADMIN).first()));
	}
	
	@Override
	public Boolean isAdmin() {
		return Boolean.TRUE;
	}
	
}
